Converting a DOS batch file to a shell script Quite a few programmers who learn scripts on a PC are running DOS. In fact, the Disabled DOS batch file language can also write some powerful scripts, although they generally need to rely on external
Shortly after joining the work, the Project Manager handed over the task of program release to me. There was a new feeling in the first few days. After a long time, there were just a few commands that really didn't mean much, but I still have to do
Just took part in the work soon, the project manager released the task to me, the beginning of a few days still a little new sense, but play for a long time, on those few orders, really don't mean, but still have to do, all bored dead. I am lazy,
1. Precise latencyTool sleep.exe from Microsoft Win 2003 Resource Kit tools
2. Countdown
@ Echo offsetlocal enabledelayedexpansion & titleset return = for/L % I in (5) do (sleep 1 set/p "= z wait % I seconds"
Because the batch processing
1, the use of ping command to realize the delay, the method is clever and can be controlled, but the accuracy is not high. such as: Ping-n 3 127.0.0.1>nul approximately can pause 2 secondsThe number after-n is the number of packets sent, plus one
For some reason, the website fails for a period of time, and IIS restarts and returns to normal.
If this happens once or twice, the worst thing is that it happens every day. You cannot fight against IIS every day.
If you want to be lazy, you have to
To realize n7000r automatic photograph as an example
Method One:@echo Offset I=1EchoOpen cameraadb shell am start-N"Com.android.gallery3d/com.android.camera.cameralauncher": CLICK:: Delay 2 secondsPing 127.0.0.1-N2>nulEchoClick%i%..., take
Recently, cc.net has studied how to place the generated publishing files on the FTP server as needed, so we have studied this information for sharing with friends:
1. FTP upload command:
Format: ftp-S: [configuration file] [FTP address]
For example,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.